OPC-UA Embedded Server SDK  2.1.0
ua_types.h File Reference

Common definitions for the OPC-UA Embedded Server SDK. More...

#include <stdint.h>
#include <stddef.h>
#include "ua_server_config.h"
#include "opcua_status_codes.h"

Go to the source code of this file.

Data Structures

struct  UA_UTF8_string_t
 Represents a UTF8 string for translation of human readable text. More...
 
struct  UA_Byte_string_t
 Represents a variable length byte string. More...
 
union  UA_Value_t
 The valid pointer types for a read or write operation by the stack on host maintained variables (node value attributes) via read and write callbacks. More...
 
struct  UA_Configuration_BuildInfo_t
 The configuration structure for the UA Server BuildInfo object. More...
 
struct  UA_Configuration_TcpBinary_t
 The configuration structure for the UA Server TCP Binary Layer. More...
 
struct  UA_Configuration_SecureConversation_t
 The configuration structure for the UA Server Secure Conversation Layer. More...
 
struct  UA_Configuration_Security_t
 The configuration structure for the UA Server Security Policies. More...
 
struct  UA_Configuration_Intervals_t
 The configuration structure for the Server Intervals. More...
 
struct  UA_Configuration_Services_t
 The configuration structure for the UA Server Services. More...
 
struct  UA_Configuration_NamespaceArray_t
 The configuration structure for the Namespace Array. More...
 
struct  UA_Configuration_AddressSpace_t
 The configuration structure for the UA Server Address Space. More...
 
struct  UA_Configuration_CertManagement_t
 The configuration structure for the UA Server Certificate Management. More...
 
struct  UA_Configuration_Locales_t
 The configuration structure for the UA Server Locale Handling. More...
 
struct  UA_Configuration_ProfileArray_t
 The configuration structure for the UA Server Profile Array. More...
 
struct  UA_Configuration_OperationLimits_t
 The configuration structure for the UA Server Operation Limits object. More...
 
struct  UA_Configuration_ServerCapabilities_t
 The configuration structure for the UA Server Capabilities object. More...
 
struct  UA_Configuration_Internals_t
 The configuration structure for the UA Server miscellaneous internals. More...
 
struct  UA_Configuration_Diagnostics_t
 The configuration structure for the UA Server diagnostics. More...
 
struct  UA_Configuration_Filters_t
 The configuration structure for the UA Server Filters. More...
 
struct  UA_Configuration_t
 The configuration structure for the UA Server. More...
 
struct  UA_NodeId_Config_t
 Optionally specifies a non-opaque node id for an address space node. More...
 
struct  UA_Base_t
 A configuration structure for all address space nodes. More...
 
struct  UA_File_t
 A configuration structure for Method address space nodes. More...
 
struct  UA_Method_t
 A configuration structure for File address space nodes. More...
 
struct  UA_BaseDataVariable_t
 A configuration structure for BaseDataVariable address space nodes. More...
 
struct  UA_DataItem_t
 A configuration structure for DataItem address space nodes. More...
 
struct  UA_Range_t
 Range data type. More...
 
struct  UA_EUInformation_t
 Engineering Units configuration (see user manual for description) More...
 
struct  UA_AnalogItem_t
 A configuration structure for AnalogItem address space nodes. More...
 
struct  UA_TwoStateDiscrete_t
 A configuration structure for TwoStateDiscrete address space nodes. More...
 
struct  UA_MultiStateDiscrete_t
 A configuration structure for MultiStateDiscrete address space nodes. More...
 

Macros

#define bool_t   int
 
#define TRUE   1
 
#define FALSE   0
 
#define UA_USER_TOKEN_POLICY_ANONYMOUS_TOKEN_SECURITY_POLICY_NONE   (1<<0)
 Bit definitions for the UA Server Security Configuration bitmaps. More...
 
#define UA_USER_TOKEN_POLICY_USERNAME_PASSWORD_TOKEN_SECURITY_POLICY_NONE   (1<<1)
 
#define UA_USER_TOKEN_POLICY_USERNAME_PASSWORD_TOKEN_SECURITY_POLICY_Basic128Rsa15   (1<<2)
 
#define UA_USER_TOKEN_POLICY_USERNAME_PASSWORD_TOKEN_SECURITY_POLICY_Basic256   (1<<3)
 
#define UA_USER_TOKEN_POLICY_USERNAME_PASSWORD_TOKEN_SECURITY_POLICY_Basic256Sha256   (1<<4)
 
#define UA_USER_TOKEN_POLICY_X509v3_CERTIFICATE_TOKEN_SECURITY_POLICY_NONE   (1<<5)
 
#define UA_USER_TOKEN_POLICY_X509v3_CERTIFICATE_TOKEN_SECURITY_POLICY_Basic128Rsa15   (1<<6)
 
#define UA_USER_TOKEN_POLICY_X509v3_CERTIFICATE_TOKEN_SECURITY_POLICY_Basic256   (1<<7)
 
#define UA_USER_TOKEN_POLICY_X509v3_CERTIFICATE_TOKEN_SECURITY_POLICY_Basic256Sha256   (1<<8)
 
#define OB_SUPPRESS_CERTIFICATE_EXPIRED   (1<<0)
 Bit definitions for a bitmap that allows you to modify the behaviour of the OPC UA Secure Channel Client Certificate handling. More...
 
#define OB_SUPPRESS_HOSTNAME_INVALID   (1<<1)
 
#define OB_SUPPRESS_REVOCATION_STATUS_UNKNOWN   (1<<2)
 
#define OB_CHECK_REVOCATION_STATUS_ONLINE   (1<<3)
 
#define OB_CHECK_REVOCATION_STATUS_OFFLINE   (1<<4)
 
#define OB_USE_DEFAULT_OPTIONS   (1<<5)
 
#define OB_TRUST_ALL_CLIENTS_WHEN_TRUST_LIST_IS_EMPTY   (1U<<31)
 
#define OB_DO_NOT_SAVE_REJECTED_CERTIFICATES   (1U<<30)
 

Typedefs

typedef uint32_t UA_Status_t
 Represents an OPC-UA status code. More...
 
typedef UA_Byte_string_t UA_Xml_element_t
 A structure representing XMLElement values. More...
 
typedef UA_Byte_string_t UA_Var_string_t
 A structure representing UTF8 string values. More...
 
typedef uint8_t * UA_GUID_t
 Represents a GUID as a pointer to an array of 16 bytes. More...
 
typedef UA_Base_t UA_Folder_t
 A configuration structure for Folder address space nodes. More...
 
typedef UA_Folder_t UA_View_t
 A configuration structure for View address space nodes. More...
 

Enumerations

enum  UA_Value_type_t {
  UA_TYPE_Invalid = 0,
  UA_TYPE_Boolean = 1,
  UA_TYPE_SByte = 2,
  UA_TYPE_Byte = 3,
  UA_TYPE_Int16 = 4,
  UA_TYPE_UInt16 = 5,
  UA_TYPE_Int32 = 6,
  UA_TYPE_UInt32 = 7,
  UA_TYPE_Int64 = 8,
  UA_TYPE_UInt64 = 9,
  UA_TYPE_Float = 10,
  UA_TYPE_Double = 11,
  UA_TYPE_String = 12,
  UA_TYPE_DateTime = 13,
  UA_TYPE_Guid = 14,
  UA_TYPE_ByteString = 15,
  UA_TYPE_XmlElement = 16,
  UA_TYPE_NodeId = 17,
  UA_TYPE_ExpandedNodeId = 18,
  UA_TYPE_StatusCode = 19,
  UA_TYPE_QualifiedName = 20,
  UA_TYPE_LocalizedText = 21,
  UA_TYPE_ExtensionObject = 22,
  UA_TYPE_DataValue = 23,
  UA_TYPE_Variant = 24,
  UA_TYPE_Range = 884,
  UA_TYPE_EUInformation = 887
}
 
enum  UA_Server_state_t {
  opcua_server_state_running = 0,
  opcua_server_state_failed = 1,
  opcua_server_state_no_configuration = 2,
  opcua_server_state_suspended = 3,
  opcua_server_state_shutdown = 4,
  opcua_server_state_test = 5,
  opcua_server_state_communication_fault = 6,
  opcua_server_state_unknown = 7,
  end
}
 Enumeration of server state. More...
 
enum  UA_Log_severity_t {
  UA_LOG_SEVERITY_ERROR = 0,
  UA_LOG_SEVERITY_INFO = 1
}
 Enumeration of log message severity. More...
 
enum  UA_Log_payload_t {
  UA_LOG_PAYLOAD_NONE = 0,
  UA_LOG_PAYLOAD_CSTRING = 1,
  UA_LOG_PAYLOAD_BINARY = 2
}
 Enumeration of log message data payload type. More...
 
enum  UA_Mon_Item_Callback_Operation_t {
  UA_MON_ITEM_CREATED = 0,
  UA_MON_ITEM_MODIFIED = 1,
  UA_MON_ITEM_DESTROYED = 2
}
 Enumeration of monitored item callabck operation type. More...
 
enum  UA_NodeId_Identifier_Type_t {
  opcua_node_encoding_numeric = 0x02,
  opcua_node_encoding_string = 0x03,
  opcua_node_encoding_guid = 0x04,
  opcua_node_encoding_bytestring = 0x05
}
 Node id encoding types for an address space node. More...
 
enum  UA_Asym_Cipher_t {
  UA_ASYM_CIPHER_INVALID = 0,
  UA_ASYM_CIPHER_RSA_PKCS1_v1_5 = 1,
  UA_ASYM_CIPHER_RSA_OAEP = 2
}
 Enumeration of asymmetric cipher types. More...
 
enum  UA_Sym_Cipher_t {
  UA_SYM_CIPHER_INVALID = 0,
  UA_SYM_CIPHER_AES_128_CBC = 1,
  UA_SYM_CIPHER_AES_256_CBC = 2
}
 Enumeration of symmetric cipher types. More...
 
enum  UA_Digest_t {
  UA_DIGEST_INVALID = 0,
  UA_DIGEST_SHA1 = 1,
  UA_DIGEST_SHA256 = 2
}
 Enumeration of message digest types. More...
 
enum  UA_Security_policy_t {
  SECURITY_POLICY_INVALID,
  SECURITY_POLICY_NONE,
  SECURITY_POLICY_BASIC128RSA15,
  SECURITY_POLICY_BASIC256,
  SECURITY_POLICY_BASIC256SHA256
}
 Enumeration of message security policies. More...
 
enum  UA_Certificate_Type_t {
  UA_CERT_TYPE_INVALID = 0,
  UA_CERT_TYPE_CLIENT_APPLICATION = 1,
  UA_CERT_TYPE_SERVER_APPLICATION = 2,
  UA_CERT_TYPE_APPLICATION_CA = 3,
  UA_CERT_TYPE_USER = 4,
  UA_CERT_TYPE_USER_CA = 5
}
 Enumeration of X509 certificate types. More...
 

Detailed Description

Common definitions for the OPC-UA Embedded Server SDK.

Definition in file ua_types.h.

Macro Definition Documentation

#define bool_t   int

bool is not portable so define our own boolean type for the API

Definition at line 61 of file ua_types.h.

#define TRUE   1

bool_t true value

Definition at line 62 of file ua_types.h.

#define FALSE   0

bool_t false value

Definition at line 63 of file ua_types.h.